/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.eb.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.kaaction.common.persistence.DataEntity;

/**
 * 砍价Entity
 * @author zengbiao
 * @version 2017-05-04
 */
public class OrderBargin extends DataEntity<OrderBargin> {
	
	private static final long serialVersionUID = 1L;
	private String order;		// order_id
	private String openid;		// openid
	private Double priceBefore;		// price_before
	private Double priceAfter;		// price_after
	private Integer rank;		// rank
	
	public OrderBargin() {
		super();
	}

	public OrderBargin(String id){
		super(id);
	}

	@Length(min=1, max=64, message="order_id长度必须介于 1 和 64 之间")
	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
	
	@Length(min=1, max=64, message="openid长度必须介于 1 和 64 之间")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@NotNull(message="price_before不能为空")
	public Double getPriceBefore() {
		return priceBefore;
	}

	public void setPriceBefore(Double priceBefore) {
		this.priceBefore = priceBefore;
	}
	
	@NotNull(message="price_after不能为空")
	public Double getPriceAfter() {
		return priceAfter;
	}

	public void setPriceAfter(Double priceAfter) {
		this.priceAfter = priceAfter;
	}
	
	@NotNull(message="rank不能为空")
	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}
	
}